<div class="btn-group pull-left">
    <div class="filter-{{name}} btn-group filter-list" data-name="{{name}}" store-key="{{store_key}}">
        {{#each filters}}
            <button type="button" class="btn btn-primary btn-sm" data-value="{{value}}">
                {{text}} <span class="badge {{../name}}-{{value}}"></span>
            </button>
        {{/each}}
        <div class="btn-group dropdown-group">
            {{#if text}}
                <button type="button" class="btn btn-primary btn-sm label-btn active"
                        data-value="all">{{text}} <span class="badge {{name}}-all"></span>
                </button>
            {{^}}
                {{#each dropdown}}
                    {{#if_eq @index 0}}
                        <button type="button" class="btn btn-primary btn-sm label-btn active"
                                data-value="{{value}}">{{text}} <span class="badge {{../name}}-{{value}}"></span>
                        </button>
                    {{/if_eq}}
                {{/each}}
            {{/if}}
            <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                <span class="caret"></span>
                <span class="sr-only">Toggle Dropdown</span>
            </button>
            <ul class="dropdown-menu" role="menu">
                {{#if text}}
                    <li data-value="all"><a href="javascript:;">{{text}} <span class="badge {{name}}-all"></span></a>
                    </li>
                {{/if}}
                {{#each dropdown}}
                    <li data-value="{{value}}"><a href="javascript:;">{{text}} <span
                            class="badge {{../name}}-{{value}}"></span></a></li>
                {{/each}}
            </ul>
        </div>
    </div>
</div>